<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title></title>
    <link rel="stylesheet" href="css/base.css" />
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
    <link rel="stylesheet" href="css/app.css" />
    <script type="text/javascript" src="js/mui.min.js" ></script>
    <script type="text/javascript" src="js/jquery-1.11.0.js" ></script>
</head>
<body id="home">
	<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">首页</h1>
	</header>
	
	<div class="mui-content">
	</div>
	<div id="slider" class="mui-slider" >
		<div class="mui-slider-group mui-slider-loop">
			<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
				<a href="#">
					<img src="img/lunbo4.png">
				</a>
			</div>
			<!-- 第一张 -->
			<div class="mui-slider-item">
				<a href="#">
					<img src="img/lunbo2.png">
				</a>
			</div>
			<!-- 第二张 -->
			<div class="mui-slider-item">
				<a href="#">
					<img src="img/lunbo3.png">
				</a>
			</div>
			<!-- 第三张 -->
			<div class="mui-slider-item">
				<a href="#">
					<img src="img/lunbo1.png">
				</a>
			</div>
			<!-- 第四张 -->
			<div class="mui-slider-item">
				<a href="#">
					<img src="img/lunbo4.png">
				</a>
			</div>
			<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
				<a href="#">
					<img src="img/lunbo1.png">
				</a>
			</div>
		</div>
		<div class="mui-slider-indicator">
			<div class="mui-indicator mui-active"></div>
			<div class="mui-indicator"></div>
			<div class="mui-indicator"></div>
			<div class="mui-indicator"></div>
		</div>
	</div>
		<script type="text/javascript" charset="utf-8">
			var slider = mui("#slider");
			document.getElementById("slider").addEventListener('toggle', function(e) {
				if (e.detail.isActive) {
					slider.slider({
						interval: 2000
					});
				} else {
					slider.slider({
						interval: 0
					});
				}
			});
		</script>
	
		<ul class="mui-table-view mui-grid-view mui-grid-9 mg">
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-icon"></span>
					<div class="mui-media-body">语文</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-icon20"></span>
					<div class="mui-media-body">数学</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-02"></span>
					<div class="mui-media-body">英语</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-07"></span>
					<div class="mui-media-body">物理</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-huaxue"></span>
					<div class="mui-media-body">化学</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-shengwu"></span>
					<div class="mui-media-body">生物</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-04"></span>
					<div class="mui-media-body">地理</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
				<a href="#">
					<span class="mui-icon iconfont icon-zhengzhi"></span>
					<div class="mui-media-body">政治</div>
				</a>
			</li>
		</ul>
	
		<nav class="mui-bar mui-bar-tab">
			<a id="defaultTab" class="mui-tab-item mui-active" href="#">
				<span class="icon iconfont icon-shouyeshouye"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="tuijain.html">
				<span class="icon iconfont icon-tuijian"></span>
				<span class="mui-tab-label">推荐</span>
			</a>
			<a class="mui-tab-item" href="">
				<span class="icon iconfont icon-shezhi"></span>
				<span class="mui-tab-label">设置</span>
			</a>
		</nav>
</body>
<script type="text/javascript">
	$(document).ready(function(){
		$.ajax({
			type:"get",
			url:"http://192.168.191.1/future/home/",
			async:true,
			dataType:"jsonp",
			jsonpCallback:"t",
			success:function(response,status,xhr){
				//alert(response.username);
			}
		});
	});
</script>
</html>